package com.bsoft.gol.hcs.specialist.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;
import com.bsoft.gol.hcs.specialist.entity.FusAnswerRouteRecord;

/**
 * @author tongtp
 * @version v0.1
 * @package specialist.dao
 * @className FusAnswerRouteRecordDAO
 * @description
 * @create 2021-12-29 9:37
 **/
public abstract class FusAnswerRouteRecordDAO extends HibernateSupportDelegateDAO<FusAnswerRouteRecord> {

	@DAOMethod(sql = "select COUNT(1) from FusAnswerRouteRecord where reportId = :reportId and routeDetailId = " +
			":routeDetailId")
	public abstract Long getCountByReportIdAndRouteDetailId(@DAOParam("reportId") String reportId,
															@DAOParam("routeDetailId") Long routeDetailId);

}
